// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "Components"

GroupBox {
    id: _root
    width: _area.width + 20
    height: _area.height + _area.anchors.topMargin + 5

    text: "  操作パネル  "
    textBkSource: "images/background.png"
    borderColor: "#888888"
    borderBkColor: "#00000000"
    radius: 5
    color: "#dddddd"

    property alias enabledBootButton: _boot.enabled
    property alias enabledRebootButton: _reboot.enabled

    signal screenLock(bool is)
    signal takeScreenShot()
    signal boot()
    signal reboot()

    Column{
        id: _area
        anchors.top: parent.top
        anchors.topMargin: parent.textHeight + 5
        anchors.left: parent.left
        anchors.leftMargin: 10

        spacing: 5

//        Button{
//            text: "Reload"
//            onClicked: {
//                _themeSetting.reload();
//            }
//        }

        Button{
            text: "  Lock  "
            onClicked: {
                _root.screenLock(true);
            }
        }
        Button{
            text: " ScreenShot "
            onClicked: {
                _root.takeScreenShot();
            }
        }
        Button{
            id: _boot
            text: " Boot "
            enabled: false
            onClicked: {
                _root.boot();
            }
        }

        Button{
            id: _reboot
            text: " Reboot "
            enabled: false
            onClicked: {
                _root.reboot();
            }
        }
    }
}
